package yuan.deng;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Description:
 * @Version: V1.0
 */

@RestController
public class HellClass {

    @Autowired
    private UserService userService;

    @RequestMapping("hh")
    public String ceShi(){
        List<User> all = userService.findAll();
        System.out.println(all.get(0).toString());
        System.out.println(all.get(1).toString());
        return "123";
    }

}
